package org.dizena.common.logger.bean;

import org.dizena.common.base.cons.ConstantKey;
import org.dizena.common.base.enums.EnumLogLevel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationEvent;

public class LogRpcEvent extends ApplicationEvent {
    private final LogInfo logInfo;
    private final EnumLogLevel levelEnum;
    private final Logger logger = LoggerFactory.getLogger(ConstantKey.RPC_LOG_DIR);

    public LogRpcEvent(Object source, LogInfo logInfo, EnumLogLevel levelEnum) {
        super(source);
        this.logInfo = logInfo;
        this.levelEnum = levelEnum;
    }

    public LogInfo getLogInfo() {
        return logInfo;
    }

    public EnumLogLevel getLevelEnum() {
        return levelEnum;
    }

    public Logger getLogger() {
        return logger;
    }
}
